<%@ page import="cn.com.wxd.entity.user.AccountInfo" %>
<%@ page import="cn.com.wxd.util.user.UserCoreUtil" %>
<%@ page import="cn.com.wxd.entity.user.UsersInfo" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath =
            request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    AccountInfo accountInfo = UserCoreUtil.getLoginAccount(request);
    UsersInfo userinfo = null;
    if(accountInfo != null){
        userinfo = accountInfo.getUsersInfo();
    }
%>
<html>
<head>
    <base href="<%=basePath %>">
    <title>Title</title>
</head>
<body>
    这是索引页面<br>
    <%
        if(userinfo != null){
            %>
    ,欢迎您：<%=userinfo.getNickName() %>---------<a href="user/logout">注销账号</a>
            <%
        }
    %>
<br>
<br>
<ul>
    <li><a href="admin/index">后台管理</a></li>
    <li><a href="website/index">网站首页</a></li>
    <li><a href="admin/login">后台登录</a></li>
    <li><a href="login">登录系统</a></li>
</ul>
</body>
</html>
